//
//  YLOrderGoodsInfoCell.m
//  YLFinanceService
//
//  Created by she1323 on 2017/9/7.
//  Copyright © 2017年 she1323. All rights reserved.
//

#import "YLOrderGoodsInfoCell.h"
#import "YLGlobeHeader.h"
#import "YLMallGoodModel.h"
#import <UIImageView+WebCache.h>
@interface YLOrderGoodsInfoCell ()
@property (weak, nonatomic) IBOutlet UIImageView *icon;
@property (weak, nonatomic) IBOutlet UILabel *productNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;
@property (weak, nonatomic) IBOutlet UILabel *neetPointLabel;

@end


@implementation YLOrderGoodsInfoCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    _icon.layer.borderColor = YLLineColor.CGColor;
    _icon.layer.borderWidth = 1.0;
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModel:(YLMallGoodModel *)model
{
    _model = model;
    [_icon sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@", YLImageURL, model.pointProductIcon]]];
    _productNameLabel.text = model.pointProductName;
    _priceLabel.text = [NSString stringWithFormat:@"市场价:%@", model.price];
    _neetPointLabel.text = [NSString stringWithFormat:@"%@积分", model.neetPoint];
 
}

+ (NSString *)cellID
{
    return @"YLOrderGoodsInfoCell";
}

@end
